﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="sqlconfig.aspx.vb" Inherits="sqlconfig" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>SQLServer配制</title>
    <link href="images/style.css" rel="stylesheet" type="text/css"/>
    <script language="javascript" src="images/main.js" ></script>
    <style type="text/css">
        
    </style>
    <script>
        function checkNull() {
            if (oid("TextBox_ServerIP").value == "") { alert("服务器名称不能为空！"); return false; }
            if (oid("TextBox_dbName").value == "") { alert("数据库名称不能为空！"); return false; }
            if (oid("TextBox_UID").value == "") { alert("登陆用户名不能为空！"); return false; }
            if (oid("TextBox_PWD").value == "") { alert("登陆密码不能为空！"); return false; }
            if (oid("TextBox_PWD0").value == "") { alert("确认密码不能为空！"); return false; }
            if (oid("TextBox_PWD").value != oid("TextBox_PWD0").value) { alert("确认密码与登陆密码不一致！"); return false; }
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
      
    <div id="divMain" style="width:680px; margin:0 auto;">
      <div class="title1" >SQL Server 数据库配制管理    </div>
        <table width="100%" style="border:#94CDF8 1px solid;"><tr>
    <td width="80" bgcolor="#E6F3F9" class="txtRight">服务器地址：</td>
    <td  bgcolor="#FFFFFF">
        <asp:TextBox ID="TextBox_ServerIP" runat="server" Width="200px"  ></asp:TextBox>
            &nbsp;<asp:Label ID="Label_tip1" runat="server" CssClass="org" Text=" * IP或主机名称"></asp:Label>
            </td>
      </tr>
       <tr>
    <td width="80" bgcolor="#E6F3F9" class="txtRight">数据库名称：</td>
    <td bgcolor="#FFFFFF">
        <asp:TextBox ID="TextBox_dbName" runat="server" Width="200px" ></asp:TextBox>
        &nbsp;<asp:Label ID="Label_tip2" runat="server" CssClass="org" Text=" * 要连接的数据库名称"></asp:Label>
    </td>
    </tr>
  <tr>
    <td width="80" bgcolor="#E6F3F9"  class="txtRight">登陆用户名：</td>
    <td  bgcolor="#FFFFFF"  >
      
        <asp:TextBox ID="TextBox_UID" runat="server" Width="150px" ></asp:TextBox>
      
        &nbsp;<asp:Label ID="Label_tip3" runat="server" CssClass="org" Text=" * 可连接远程登陆SQL的用户名称"></asp:Label>
      
    </td>
    </tr>
  <tr>
    <td width="80" bgcolor="#E6F3F9" class="txtRight">登陆密码：</td>
    <td  bgcolor="#FFFFFF">
      <asp:TextBox ID="TextBox_PWD" runat="server" Width="150px" TextMode="Password"></asp:TextBox>
    &nbsp;<asp:Label ID="Label_tip4" runat="server" CssClass="org" Text=" * 可连接远程登陆SQL的密码"></asp:Label>
      </td>
    </tr>
  <tr>
    <td width="80" valign="top" bgcolor="#E6F3F9" class="txtRight">确认密码：</td>
    <td bgcolor="#FFFFFF">
      <asp:TextBox ID="TextBox_PWD0" runat="server" Width="150px"  TextMode="Password"></asp:TextBox>
      &nbsp;<asp:Label ID="Label_tip6" runat="server" CssClass="org" Text=" * 请重复登陆密码"></asp:Label>
      </td>
  </tr>
  <tr>
     
    <td  colspan="2" style=" text-align:center; background-color:#E6F3F9;">
        &nbsp;<asp:Label ID="Label_tip5" runat="server" CssClass="green"></asp:Label>
      </td>
  </tr>
          </table>
        <div  style="background-color:#94CDF8; text-align:center;padding:5px;"> <asp:Button ID="Button_save" runat="server" AccessKey="S" Text="保存(S)" OnClientClick="javascript:return checkNull();" />&nbsp;<asp:Button ID="Button_goIndex" runat="server" AccessKey="I" Text="到首页(I)" PostBackUrl="/" /></div>
    </div>
    </form>
</body>
</html>
